#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>
void* my_memcpy(void* dest, const void* src,size_t num)
{
	assert(dest && src);
	void* str = dest;
	int i = 0;
	for (i = 0; i < num; i++)
	{
		*(char*)dest = *(char*)src;
		dest = (char*)dest + 1;
		src = (char*)src + 1;
	}
	return str;
}

int main()
{
	int arr1[] = { 1,2,3,4 };
	int arr2[20] = { 5,6,7,8,9 };
	my_memcpy(arr2, arr1+1, 12);
	for (int i = 0; i < 20; i++)
	{
		printf("%d ", arr2[i]);
	}


	return 0;
}